import request from '@/utils/request'

// 查询商品限时购与商品关系列表
export function listFlashPromotionProductRelation(query) {
  return request({
    url: '/sms/flashPromotionProductRelation/list',
    method: 'get',
    params: query
  })
}

// 查询商品限时购与商品关系详细
export function getFlashPromotionProductRelation(id) {
  return request({
    url: '/sms/flashPromotionProductRelation/' + id,
    method: 'get'
  })
}

// 新增商品限时购与商品关系
export function addFlashPromotionProductRelation(data) {
  return request({
    url: '/sms/flashPromotionProductRelation',
    method: 'post',
    data: data
  })
}

// 修改商品限时购与商品关系
export function updateFlashPromotionProductRelation(data) {
  return request({
    url: '/sms/flashPromotionProductRelation',
    method: 'put',
    data: data
  })
}

// 删除商品限时购与商品关系
export function delFlashPromotionProductRelation(id) {
  return request({
    url: '/sms/flashPromotionProductRelation/' + id,
    method: 'delete'
  })
}

// 导出商品限时购与商品关系
export function exportFlashPromotionProductRelation(query) {
  return request({
    url: '/sms/flashPromotionProductRelation/export',
    method: 'get',
    params: query
  })
}